<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>物理学家</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="../../css/note.css" />
</head>
<body>

<script src="../../js/note.js"></script>
<script src="../../js/table.js"></script>
<script>
var physicist = [
  //{name, cnname, enname, nationality, birth, decease},
	{name:'Galileo Galilei', cnname:'伽利略', enname:'Galileo',
    nationality:'意大利', birth:1564, decease:1642},
  {name:'Issac Newton', cnname:'牛顿', enname:'Newton',
    nationality:'英国', birth:1642, decease:1726},
];

Table.create({
  parent: document.body,
  data: physicist,
  columns: [
    'cnname', 'enname', 'nationality',
    function(){return this.birth + '-' + this.decease},
    'name'
  ],
  heads: ['中文名', '英文名', '国籍', '生卒', '全名'],
  sortBy: 'birth',
});
</script>

</body>

</html>
